<template>
  <section id="home" class="hero">
    <div class="hero-container">
      <div class="hero-content">
        <h1 class="hero-title">
          <span class="gradient-text">智索真源</span>
          <span class="hero-subtitle-text">一家专注于智能化企业服务创新的科技公司</span>
        </h1>
        <h2 class="hero-subtitle">
          <span class="product-label">旗下产品</span>
          <span class="product-name">SKILLITH</span>
        </h2>
        <div class="hero-slogan">
          <h3 class="slogan-text">
            基于AI+区块链的智能任务撮合平台，重新定义企业外包协作模式
          </h3>
          <div class="feature-tags">
            <div class="feature-tag">
              <i class="fas fa-shield-alt"></i>
              <span>能力认证</span>
            </div>
            <div class="feature-tag">
              <i class="fas fa-link"></i>
              <span>区块链存证</span>
            </div>
            <div class="feature-tag">
              <i class="fas fa-rocket"></i>
              <span>数字化转型</span>
            </div>
          </div>
        </div>
        <p class="hero-description">
          我们不是在做传统的外包平台，而是在构建一个让"信任自动生成、合作更高效、人才持续成长"的智能协作生态。
          通过AI智能匹配、区块链存证、技术股激励等创新模式，为企业提供更透明、更安全、更可持续的外包解决方案。
        </p>
        <div class="hero-buttons">
          <button class="btn btn-primary" @click="scrollToSection('contact')">
            <i class="fas fa-rocket"></i>
            立即体验
          </button>
          <button class="btn btn-secondary" @click="scrollToSection('products')">
            <i class="fas fa-play"></i>
            了解更多
          </button>
        </div>
      </div>
      <div class="hero-visual">
        <div class="map-container">
          <WuhuMap />
        </div>
      </div>
    </div>
  </section>
</template>

<script>
import WuhuMap from './WuhuMap.vue'

export default {
  name: 'HeroSection',
  components: {
    WuhuMap
  },
  methods: {
    scrollToSection(sectionId) {
      const element = document.getElementById(sectionId)
      if (element) {
        element.scrollIntoView({ behavior: 'smooth' })
      }
    }
  }
}
</script>

<style scoped>
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: white;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
}

.hero-subtitle-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin-top: 1rem;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #5b73e8 30%, #06b6d4 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  filter: brightness(1.3) contrast(1.2);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  position: relative;
}


@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-label {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.product-name {
  color: #00d4ff;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero-slogan {
  margin-bottom: 2rem;
}

.slogan-text {
  font-size: 1.3rem;
  color: #e5e7eb;
  text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 500;
}

.feature-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-tag i {
  color: #00d4ff;
  font-size: 1.1rem;
}

.feature-tag span {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #5b73e8 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  height: 500px;
}

.map-container {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.map-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00d4ff, #5b73e8, #06b6d4, #10b981);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.8rem;
  }
  
  .hero-visual {
    height: 400px;
  }
  
  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle-text {
    font-size: 1.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .slogan-text {
    font-size: 1.1rem;
  }
  
  .product-name {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-visual {
    height: 350px;
  }
  
  .map-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle-text {
    font-size: 1rem;
  }
  
  .slogan-text {
    font-size: 1rem;
  }
  
  .feature-tags {
    justify-content: center;
  }
  
  .feature-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .map-container {
    height: 300px;
  }
}
</style>